<?php
/**
 * created by zzy
 * date: 2017/10/24 9:40
 */
namespace App\Api\Service\Routes;

use Dingo\Api\Routing\Router;

class LogisticsRoute
{
    public function map(Router $router)
    {
        $router->group(['namespace' => 'Logistics\Controllers', 'prefix'=>'logistics'], function ($router) {

            //物流
            $router->any('list', 'LogisticsController@lists');
            $router->any('edit', 'LogisticsController@edit');
            $router->any('delete', 'LogisticsController@del');
            //专线
            $router->any('line-list', 'LineController@lists');
            $router->any('line-edit', 'LineController@edit');
            $router->any('line-delete', 'LineController@del');
            //发货
            $router->any('notes-list', 'NotesController@lists');
            $router->any('notes-edit', 'NotesController@edit');
            $router->any('notes-detail', 'NotesController@detail');
            $router->any('notes-delete', 'NotesController@del');
            //消息跳的详情
            $router->any('message-detail', 'MessageController@detail');
            $router->any('message-detail', 'MessageController@detail');
            //账单
            $router->any('bill-list', 'BillController@lists');
            $router->any('bill-edit', 'BillController@edit');
            $router->any('bill-detail', 'BillController@detail');
            $router->any('bill-delete', 'BillController@del');
            //发票
            $router->any('invoice-list', 'InvoiceController@lists');
            $router->any('invoice-edit', 'InvoiceController@edit');
            $router->any('invoice-delete', 'InvoiceController@del');

        });
    }
}